function enterCommunity(param, data, slot)
{
	trace(this._name+".enterCommunity");
	Packages.components.Scene.enterCommunity(param, data, slot);
}

function pressItem(param, data, slot)
{
	// trace("pressItem: "+param);
	var item=mlf.mcmanager.PathResolver.extractPath(param);
	item.gotoAndStop(3);
}

function rolloverItem(param, data, slot)
{
	// trace("rolloverItem: "+param);
	var item=mlf.mcmanager.PathResolver.extractPath(param);
	item.gotoAndStop(2);
}

function rolloutItem(param, data, slot)
{
	var item=mlf.mcmanager.PathResolver.extractPath(param);
	item.gotoAndStop(1);
}

function releaseItem(param, data, slot)
{
	 trace("releaseItem: "+param);
	var item=mlf.mcmanager.PathResolver.extractPath(param);
	item.gotoAndStop(1);
	if (param.indexOf("1")>-1)
	{
		Packages.components.Scene.enterReadingBrowser(param, data, slot);
	}
	else if (param.indexOf("2")>-1)
	{
		Packages.components.Scene.enterRecorder(param, data, slot);
	}
	else if (param.indexOf("3")>-1)
	{
		Packages.components.Scene.enterPlayer(param, data, slot);
	}
	else if (param.indexOf("surveyCloud")>-1)
	{
		var surveyLayer=mlf.gatekeeper.native.Caller.scanElement("SurveyPaper", "main");
		// trace("surveyLayer: "+surveyLayer);
		if (surveyLayer==null)
		{
			mlf.gatekeeper.native.Caller.MLoader("app/SurveyPaper.xml");
		}
		else 
		{
			surveyLayer._visible=!surveyLayer._visible;
			surveyLayer._parent.swapDepths(100);
		}
	}
}

function releaseoutItem(param, data, slot)
{
	var item=mlf.mcmanager.PathResolver.extractPath(param);
	item.gotoAndStop(1);
}

function init(param, data, slot)
{
	Packages.system.DeepLinking.triggerDeepLinkingChange(slot);
}